/*********************************************************
          File Name:10.17.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sun 27 Sep 2015 11:46:24 AM CST
**********************************************************/

#include <iostream>
#include <algorithm>
#include <vector>

int main()
{
        std::vector<int> vi{1, 4, 0, 9, 8};

        for(int x: vi)
                std::cout << x << " ";
        std::cout << std::endl;

        std::sort(vi.begin(), vi.end(), [](int i, int j) -> bool { return i < j; });

        for(int x: vi)
                std::cout << x << " ";
        std::cout << std::endl;

        return 0;
}
